import request from '@/utils/request'

export function listNews(place_id) {
  return request({
    url: '/bs/listNews',
    method: 'get',
    params: {
      place_id
    }
  })
}

export function getNews(id) {
  return request({
    url: '/bs/news',
    method: 'get',
    params: {
      id
    }
  })
}

export function createNews(params) {
  return request({
    url: '/bs/createNews',
    method: 'post',
    data: params
  })
}

export function updateNews(params) {
  return request({
    url: '/bs/updateNews',
    method: 'post',
    data: params
  })
}

export function deleteNews(id) {
  return request({
    url: '/bs/deleteNews',
    method: 'post',
    data: {
      id: id
    }
  })
}

